<?php
/* @var $this yii\web\View */
$this->title = '主题';
?>


<style>
    
    .themems{border-top: solid 2px green;padding-top: 15px;}
    .theme{float:left;width:250px;height:230px;padding:10px;margin-left:20px;cursor: pointer;box-shadow: 20px 15px 5px #888888;}
    .cover{clear: both;display: block; width:250px;height:200px;}
    .title{display: block;text-align: left;text-indent: 5px;color:black;font-size:16px;width:250px;background: white;}
    
</style>


<div class="themems">
    
    <?php
    
       foreach($themes as $theme){
           
           
 
    
    ?>
    <div class="theme">
        <a href="<?=  yii\helpers\Url::toRoute(["/config/set-theme",'themeName'=>$theme['name']])?>" >
        <img src="/frontend/views/<?=$theme['name']?>/cover.jpg"  class="cover"/>
        <span class="title"><?=$theme['name']?><span style="color: green;font-size: 14px;"><?=Yii::$app->params['THEME']==$theme['name']?" -[当前正在使用]":"";?></span></span>
        </a>
        
    </div>
    
    
    <?php
       }
       ?>
</div>